<div class="users form">
<?php echo $form->create('User', array('type' => 'file'));?>
	<fieldset>
 		<legend><?php __('Registrar Usuario');?></legend>
	<?php
		echo $form->input('username',array('label' => 'Login','maxLength'=> 40));
		echo 'Imagen<br>';
		echo $form->file('User.photo_data');
		echo $form->input('email',array('label' => 'Direccion de Email:','maxLength'=> 80));
		echo $form->input('password');
                echo $form->input('password_confirm',array('label' => 'Confirme su password', 'type' => 'password','maxLength'=> 40));
		
                echo $form->input('nombre',array('maxLength'=> 40));
		echo $form->input('apellido',array('maxLength'=> 40));
		echo $form->input('pais_id', array('label' => 'Elija su pais','options' => $paises_list));
	?>	
	<?php	echo $form->input('nacimiento', array('label' => 'Fecha de nacimiento', 'dateFormat' => 'DMY', 'minYear' => date('Y') - 70, 'maxYear' => date('Y')));
		echo $form->input('sexo', array('options' => array('F' => 'Femenino','M' => 'Masculino'), 'default'=>'M'));
		echo $form->input('direccion', array('maxLength'=> 80));
		echo $form->input('telefono', array('maxLength'=> 40));
		
	?>
	</fieldset>
<?php echo $form->end('Aceptar');?>
</div>

